<%@ page language="java" pageEncoding="UTF-8" %>
<%@include file="/template/top.jsp" %>
<%@ include file="/template/common/include/constant.jsp" %>


<body>
<div class="main1">当前的位置:发送邮件
    <label>
        <input type="checkbox" name="checkbox2" id="checkbox2" onClick="postList(this)">
    </label>
    群发
</div>

<script language="javascript">
    function postList(ck) {
        if (ck.checked) {
            document.getElementById("tab_1").style.display = "none";
            document.getElementById("tab_2").style.display = "";
        } else {
            document.getElementById("tab_1").style.display = "";
            document.getElementById("tab_2").style.display = "none";
        }
    }

</script>

<form method="post" action="${path}/ta/mailinfo.x" id="editFrm">
    ${sys_searchparemeter}
    <input type="hidden" name="op" value="postMail"/>

    <div class="list_div" id="mail_body">
        <table border="0" cellpadding="0" cellspacing="0" id="tab_1">
            <tr>
                <td width="80">收件人ID:</td>
                <td><input name="uid" type="text" id="id_t_rightName" value="${uid}" size="40"/></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td><label>
                    <input type="checkbox" name="data(pass)" id="checkbox" value="True">
                    仍然对此用户发信，即使以前已经发送过
                </label></td>
            </tr>
            <tr>
                <td>信件内容:</td>
                <td>
                    <textarea name="data(doc)" cols="40" rows="4" id="id_t_rightDesc"
                              onClick="nullReaio()">${data.doc}</textarea>
                    <script type="text/javascript">
                        function nullReaio() {
                            r = document.getElementsByName("data(swift)");
                            for (var i = 0; i < r.length; i++) {
                                var obj = r[i];
                                obj.checked = null;
                            }
                        }
                    </script>
                </td>


            </tr>
            <tr>
                <td>快速邮件:</td>
                <td>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td><input name="data(swift)" type="radio" value="1" checked></td>
                            <td>&nbsp;你好，可以聊聊吗？告诉我QQ号，咱们QQ联系也行^_^（邮票附送啦~~~）</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" id="tab_2" style="display:none">
            <tr>
                <td>&nbsp;</td>
                <td>请在下方添加收件人主页地址，用“回车”分隔。如<br>
                    http://www.jiayuan.com/45757564<br>
                    http://www.jiayuan.com/28750146
                </td>
            </tr>
            <tr>
                <td>收件人列表:</td>
                <td><textarea name="data(mailList)" cols="40" rows="4" id="data(doc)"
                              onClick="nullReaio()"></textarea>
                    <script type="text/javascript">
                        function nullReaio() {
                            r = document.getElementsByName("data(swift)");
                            for (var i = 0; i < r.length; i++) {
                                var obj = r[i];
                                obj.checked = null;
                            }
                        }
                    </script>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>邮件内容默认为”你好，可以聊聊吗？告诉我QQ号，咱们QQ联系也行^_^（邮票附送啦~~~）“，并且过滤已发送过用户。</td>
            </tr>
        </table>
    </div>

    <div class="edit_div">
        <input type="button" onClick="sumform()" value="确定" class="btn_Submit"/>
        &nbsp;
        <input type="button" onClick="window.close()" value="关闭" class="btn_Submit"/>
    </div>
    <script type="text/javascript">
        function sumform() {
            document.getElementById("editFrm").submit();
            document.getElementById("mail_body").innerHTML = "邮件发送中，请等待。。。";
        }
    </script>
</form>
</body>